package cn.bonoon.kernel.web.components;

import cn.bonoon.kernel.web.html.UIPropertyBuilder;

/**
 * <pre>
 * 以下是本框架定义的可使用的控件：
 * 1. {@link cn.bonoon.kernel.web.annotations.components.AsDateBox AsDateBox}对应的处理器{@link DateBoxComponent}
 * 2. {@link cn.bonoon.kernel.web.annotations.components.AsComboBox AsComboBox}对应的处理器{@link ComboBoxComponent}
 * 3. {@link cn.bonoon.kernel.web.annotations.components.AsComboTree AsComboTree}对应的处理器{@link ComboTreeComponent}
 * 4. {@link cn.bonoon.kernel.web.annotations.components.AsComboGrid AsComboGrid}对应的处理器{@link ComboGridComponent}
 * 5. {@link cn.bonoon.kernel.web.annotations.components.AsSelector AsSelector}对应的处理器{@link SelectorComponent}
 * 6. {@link cn.bonoon.kernel.web.annotations.components.AsCheckbox AsCheckbox}对应的处理器{@link CheckboxComponent}
 * 7. {@link cn.bonoon.kernel.web.annotations.components.AsTextArea AsTextArea}对应的处理器{@link TextAreaComponent}
 * 8. {@link cn.bonoon.kernel.web.annotations.components.AsFile AsFile}对应的处理器{@link FileComponent}
 * 9. {@link cn.bonoon.kernel.web.annotations.components.AsNumberBox AsNumberBox}对应的处理器{@link NumberBoxComponent}
 * 10. {@link cn.bonoon.kernel.web.annotations.components.AsRadio AsRadio}对应的处理器{@link RadioComponent}
 * 11. {@link cn.bonoon.kernel.web.annotations.components.AsPassword AsPassword}对应的处理器{@link PasswordComponent}
 * 12. {@link cn.bonoon.kernel.web.annotations.components.AsEditor AsEditor}对应的处理器{@link EditorComponent}
 * 13. {@link cn.bonoon.kernel.web.annotations.components.AsNumberSpinner AsNumberSpinner}对应的处理器{@link NumberSpinnerComponent}
 * 14. {@link cn.bonoon.kernel.web.annotations.components.AsTimeSpinner AsTimeSpinner}对应的处理器{@link TimeSpinnerComponent}
 * 15. {@link cn.bonoon.kernel.web.annotations.components.AsImage AsImage}对应的处理器{@link ImageComponent}
 * 16. {@link cn.bonoon.kernel.web.annotations.components.AsComponent AsComponent}对应的处理器{@link StandardComponent}
 * </pre>
 * @author jackson
 *
 */
public interface Component {
	
	int fontSize = 12;
	
	/**
	 * 
	 * @param sfp
	 * @return
	 */
	void build(UIPropertyBuilder builder)throws Exception;
	
//	void setAccessor(ClassPropertyAccessor accessor);
}
